package com.backend.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum Gender {
    MALE(1, "男"),
    FEMALE(2, "女");
    
    private final Integer value;
    private final String desc;
    
    public static Gender valueOf(Integer value) {
        for (Gender gender : values()) {
            if (gender.getValue().equals(value)) {
                return gender;
            }
        }
        return null;
    }
} 